﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SmsCmdCode.ascx.cs" Inherits="Administrator_Controls_SmsCmdCode" %>
<!-- table -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 runat="server" id="title">
            Mã SMS CMD</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="first-action">
        <div class="button">
            <a href="default.aspx?control=smscmdcodeadd">
                <input type="button" value="Thêm Mới" /></a>
        </div>
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th class="stt">
                        STT
                    </th>
                    <th>
                        Mã
                    </th>
                    <th>
                        Mô tả
                    </th>
                    <th>
                        Ngày tạo
                    </th>
                    <th>
                        Người tạo
                    </th>
                    <th>
                        Mở rộng
                    </th>
                    <th class="edit">
                        Sửa
                    </th>
                    <th class="selected last">
                        <input type="checkbox" class="checkall" />
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr id="<%#Eval("CMD_CODE_ID") %>">
                            <td align="center">
                                <%#Container.ItemIndex+1 %>
                            </td>
                            <td>
                                <a href="default.aspx?control=SmsCmdCode&category_id=<%#Eval("CMD_CODE_ID") %>">
                                    <%#Eval("CMD_CODE")%>
                                </a>
                            </td>
                            <td>
                                <%#Eval("CMD_DESCRIPTION")%>
                            </td>
                            <td align="center">
                                <%#Eval("CREATED_DATE","{0:dd/MM/yyyy}")%>
                            </td>
                            <td>
                                <%#Eval("CREATED_BY")%>
                            </td>
                            <td>
                                <a href="default.aspx?control=smscmdcodeexts&module_id=<%#Eval("CMD_CODE_ID")%>">Mở
                                    rộng </a>
                            </td>
                            <td align="center">
                                <a href="default.aspx?control=smscmdcodeedit&id=<%#Eval("CMD_CODE_ID") %>" class="edit"
                                    title="Chỉnh sửa">&nbsp;&nbsp;&nbsp;</a>
                            </td>
                            <td align="center" class="last">
                                <input id="chkBox" type="checkbox" value='<%#Eval("CMD_CODE_ID")%>' class="item"
                                    runat="server" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="action">
            <asp:DropDownList ID="ddlAction" runat="server" OnSelectedIndexChanged="ddlAction_SelectedIndexChanged"
                AutoPostBack="true" CssClass="selectwidth">
                <asp:ListItem Value="0" class="folder-open" Text="---Chọn hành động---"></asp:ListItem>
                <asp:ListItem Value="1" class="locked" Text="Di chuyển tới thùng rác"></asp:ListItem>
                <asp:ListItem Value="2" class="unlocked" Text="Xóa vĩnh viễn"></asp:ListItem>
            </asp:DropDownList>
            <div class="button">
                <a href="default.aspx?control=smscmdcodeadd">
                    <input type="button" value="Thêm Mới" /></a>
            </div>
        </div>
    </div>
</div>
<!-- end table -->
